using System;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Query
{
	[DataContract(Name = "PagingInfo", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class PagingInfo : IExtensibleDataObject
	{
		private int _pageNumber;
		private int _count;
		private string _pagingCookie;
		private bool _returnTotalRecordCount;
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public int PageNumber
		{
			get
			{
				return this._pageNumber;
			}
			set
			{
				this._pageNumber = value;
			}
		}
		[DataMember]
		public int Count
		{
			get
			{
				return this._count;
			}
			set
			{
				this._count = value;
			}
		}
		[DataMember]
		public bool ReturnTotalRecordCount
		{
			get
			{
				return this._returnTotalRecordCount;
			}
			set
			{
				this._returnTotalRecordCount = value;
			}
		}
		[DataMember]
		public string PagingCookie
		{
			get
			{
				return this._pagingCookie;
			}
			set
			{
				this._pagingCookie = value;
			}
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
		internal void Accept(IQueryVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
